package com.sinbader.xiaole.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 货架
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-17
 */
@TableName("shelf")
public class Shelf implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货架编号
     */
    @TableField("shelves_num")
    private String shelvesNum;

    /**
     * 货架名称
     */
    @TableField("shelves_name")
    private String shelvesName;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 所属仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 区域（例如A区域）
     */
    @TableField("region")
    private String region;

    /**
     * 排（例如：1排，2排）
     */
    @TableField("row")
    private String row;

    /**
     * 层（第几层）
     */
    @TableField("floor")
    private String floor;

    /**
     * 号（几排基层几号）
     */
    @TableField("mark")
    private String mark;

    /**
     * 状态   0: 启用 1:禁用
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 经手人id
     */
    @TableField("handle_user")
    private Long handleUser;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 审核人id
     */
    @TableField("audit_user")
    private Long auditUser;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private Date auditTime;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 打印时间
     */
    @TableField("print_time")
    private Date printTime;

    /**
     * 更新人id
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 默认为0,1为删除
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 组织ID  （根据type 指向 supplier表 或 shop 表）
     */
    @TableField("org_id")
    private Long orgId;

    /**
     * 用户类型 (supplier xiaole shop superAdmin common)
     */
    @TableField("user_type")
    private String userType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getShelvesNum() {
        return shelvesNum;
    }

    public void setShelvesNum(String shelvesNum) {
        this.shelvesNum = shelvesNum;
    }

    public String getShelvesName() {
        return shelvesName;
    }

    public void setShelvesName(String shelvesName) {
        this.shelvesName = shelvesName;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getRow() {
        return row;
    }

    public void setRow(String row) {
        this.row = row;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getHandleUser() {
        return handleUser;
    }

    public void setHandleUser(Long handleUser) {
        this.handleUser = handleUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getAuditUser() {
        return auditUser;
    }

    public void setAuditUser(Long auditUser) {
        this.auditUser = auditUser;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPrintTime() {
        return printTime;
    }

    public void setPrintTime(Date printTime) {
        this.printTime = printTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取 orgId
     *
     * @return orgId.
     */
    public Long getOrgId() {
        return orgId;
    }

    /**
     * 设置 orgId
     *
     * @param orgId orgId
     */
    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    /**
     * 获取 userType
     *
     * @return userType.
     */
    public String getUserType() {
        return userType;
    }

    /**
     * 设置 userType
     *
     * @param userType userType
     */
    public void setUserType(String userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "Shelf{" +
                "id=" + id +
                ", shelvesNum='" + shelvesNum + '\'' +
                ", shelvesName='" + shelvesName + '\'' +
                ", warehouseId=" + warehouseId +
                ", warehouseName='" + warehouseName + '\'' +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", region='" + region + '\'' +
                ", row='" + row + '\'' +
                ", floor='" + floor + '\'' +
                ", mark='" + mark + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", handleUser=" + handleUser +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", auditUser=" + auditUser +
                ", auditTime=" + auditTime +
                ", updateTime=" + updateTime +
                ", printTime=" + printTime +
                ", updateUser=" + updateUser +
                ", isDelete=" + isDelete +
                ", orgId=" + orgId +
                ", userType='" + userType + '\'' +
                '}';
    }
}
